# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=smtptester
pkgver=13.634e1ee
pkgrel=9
pkgdesc='Small python3 tool to check common vulnerabilities in SMTP servers.'
arch=('any')
groups=('blackarch' 'blackarch-exploitation' 'blackarch-cracker')
url='https://github.com/xFreed0m/SMTPTester'
license=('GPL3')
depends=('python' 'python-colorlog')
makedepends=('git')
source=("git+https://github.com/xFreed0m/$pkgname.git")
sha512sums=('SKIP')

prepare() {
  cd $pkgname

  sed -i '1i\#!/usr/bin/python3' SMTPTester.py
}

package() {
  cd $pkgname

  install -Dm 755 SMTPTester.py "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
  install -Dm 644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
}

